<?php
/**
 * Created by PhpStorm.
 * User: priestll
 * Date: 20-7-30
 * Time: 上午11:36
 */
// tars 平台然后文件
// 读取tars conf配置
// 处理合成 env文件
$args = $_SERVER['argv'];

//var_dump($args);

$swoft_bin = dirname(__FILE__).'/easyswoole ';

var_dump($args[2]);

$arg_cmd = $args[2]=='start' ? 'start d' : $args[2] ;

if($args[2] == null){
    $arg_cmd ='start d';
}

//$arg_cmd = '';
$cmd = "/usr/bin/php " . $swoft_bin . $arg_cmd;

//exec($cmd, $output, $r);
system($cmd, $r);